//
//  BaseVC.m
//  ZhiHuDaily
//
//  Created by 吴宜昊 on 2022/2/5.
//

#import "BaseVC.h"

@interface BaseVC () <UIGestureRecognizerDelegate>

@end

@implementation BaseVC

#pragma mark - override
-(void)dealloc {
    NSLog(@"dealloc %@", self.class );
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = UIColor.whiteColor;
    // 解决右滑返回失效问题
    self.navigationController.interactivePopGestureRecognizer.delegate = self;
}

-(void) viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    
    self.navigationController.interactivePopGestureRecognizer.enabled = self.allowPopGesture;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
